package ar.com.ctrln.view.menu.administracion;

import java.util.LinkedList;
import java.util.List;

import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.Executions;
import org.zkoss.zk.ui.util.GenericForwardComposer;
import org.zkoss.zul.Include;
import org.zkoss.zul.Toolbar;
import org.zkoss.zul.Window;

public class MenuComposerAdministracion extends
		GenericForwardComposer<Component> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	Include wDashboard$iDashboard;
	Window wDashboard;
	Window wRegistrarContacto;
	Toolbar toolbar;
	List<Component> heap = new LinkedList<Component>();

	@Override
	public void doAfterCompose(Component comp) throws Exception {
		super.doAfterCompose(comp);
		Component window = Executions.createComponents(
				"/zul/administracion/dashboard.zul", wDashboard, null);
		heap.add(window);
	}

	/**
	 * Metodos de Eventos del Menú
	 */

	// public void onClick$(Event evt) {
	//
	// System.out.println("HOLAA!!!");
	// }

	public void onClick$bRegistrarCliente$wMenu$iMenu() {

		Component window = Executions.createComponents(
				"/zul/administracion/cliente/registrarCliente.zul", wDashboard,
				null);
		heap.add(window);

	}

	public void onClick$bConsultarCliente$wMenu$iMenu() {

		Component window = Executions.createComponents(
				"/zul/administracion/cliente/consultarCliente.zul", wDashboard,
				null);
		heap.add(window);
	}

	public void onClick$bRegistrarContacto$wMenu$iMenu() {

		Component window = Executions.createComponents(
				"/zul/administracion/cliente/registrarContactoSolo.zul",
				wDashboard, null);
		heap.add(window);
	}

	public void onClick$bConsultarContacto$wMenu$iMenu() {

		Component window = Executions.createComponents(
				"/zul/administracion/cliente/consultarContacto.zul",
				wDashboard, null);
		heap.add(window);
	}

	public void onClick$bRegistrarFactura$wMenu$iMenu() {

		Component window = Executions.createComponents(
				"/zul/administracion/pago/registrarFactura.zul", wDashboard,
				null);
		heap.add(window);
	}

	public void onClick$bRegistrarPagoProveedor$wMenu$iMenu() {

		Component window = Executions.createComponents(
				"/zul/administracion/pago/registrarPagoProveedor.zul",
				wDashboard, null);
		heap.add(window);
	}

	public void onClick$bRegistrarEvento$wMenu$iMenu() {

		Component window = Executions.createComponents(
				"/zul/administracion/eventos/registrarEvento.zul", wDashboard,
				null);
		heap.add(window);
	}

	public void onClick$bConsultarEvento$wMenu$iMenu() {

		Component window = Executions.createComponents(
				"/zul/administracion/eventos/consultarEvento.zul", wDashboard,
				null);
		heap.add(window);
	}

	public void onClick$bRegistrarAsistencia$wMenu$iMenu() {

		Component window = Executions.createComponents(
				"/zul/administracion/eventos/registrarAsistencia.zul",
				wDashboard, null);
		heap.add(window);
	}

	public void onClick$bRegistrarEmpleado$wMenu$iMenu() {

		Component window = Executions.createComponents(
				"/zul/administracion/empleados/registrarEmpleado.zul",
				wDashboard, null);
		heap.add(window);
	}

	public void onClick$bConsultarEmpleado$wMenu$iMenu() {

		Component window = Executions.createComponents(
				"/zul/administracion/empleados/consultarEmpleado.zul",
				wDashboard, null);
		heap.add(window);
	}

	public void onClick$bRegistrarPagoEmpleado$wMenu$iMenu() {

		Component window = Executions.createComponents(
				"/zul/administracion/empleados/registrarPagoEmpleado.zul",
				wDashboard, null);
		heap.add(window);
	}

	public void onClick$bConsultarPagoEmpleado$wMenu$iMenu() {

		Component window = Executions.createComponents(
				"/zul/administracion/empleados/consultarPagoEmpleado.zul",
				wDashboard, null);
		heap.add(window);
	}

	public void onClick$bConsultarLiquidacion$wMenu$iMenu() {

		Executions.createComponents("", wDashboard, null);
	}

	public void onClick$bGenerarLiquidacion$wMenu$iMenu() {

		Executions
				.createComponents(
						"/zul/administracion/consumo/liquidacion/listarClientesLiquidacion.zul",
						wDashboard, null);

	}

	public void onClick$bLiquidacionInternet$wMenu$iMenu() {

		Executions.createComponents(
				"/zul/administracion/consumo/internet/liquidacionInternet.zul",
				wDashboard, null);

	}

	public void onClick$bServicio$wMenu$iMenu() {

		Executions
				.createComponents(
						"/zul/administracion/consumo/servicios/registroConsumoServicioAdicional.zul",
						wDashboard, null);

	}

	public void onClick$bConsultarServicio$wMenu$iMenu() {

		Executions
				.createComponents(
						"/zul/administracion/consumo/servicios/consultarConsumoServiciosAdicional.zul",
						wDashboard, null);

	}

	public void onClick$bRegistrarEquipamiento$wMenu$iMenu() {

		Executions
				.createComponents(
						"/zul/administracion/consumo/equipamiento/registrarEquipamiento.zul",
						wDashboard, null);

	}

	public void onClick$bConsutlarEquipamiento$wMenu$iMenu() {

		Executions
				.createComponents(
						"/zul/administracion/consumo/equipamiento/consultarEquipamiento.zul",
						wDashboard, null);

	}

	public void onClick$bGenerarFactura$wMenu$iMenu() {

		Executions.createComponents(
				"/zul/administracion/factura/generarFactura.zul", wDashboard,
				null);

	}

	public void onClick$bConsultarFactura$wMenu$iMenu() {

		Executions.createComponents(
				"/zul/administracion/factura/generarFactura.zul", wDashboard,
				null);

	}

	public void onClick$bRegistrarResultadoEvento$wMenu$iMenu() {

		Executions.createComponents(
				"/zul/administracion/eventos/consultarTemas.zul", wDashboard,
				null);

	}
}